package com.xiaodai.miaosha.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaodai.miaosha.entity.Goods;
import com.xiaodai.miaosha.mapper.GoodsMapper;
import com.xiaodai.miaosha.mapper.SeckillGoodsMapper;
import com.xiaodai.miaosha.service.IGoodsService;
import com.xiaodai.miaosha.vo.GoodsVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author xiaodai
 * @since 2022-03-20
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {
    @Resource
    private GoodsMapper goodsMapper;
//    @Resource
//    private SeckillGoodsMapper seckillGoodsMapper;

    @Override
    public List<GoodsVo> findGoodsVo() {

        return goodsMapper.findGoodsVo();
    }

    @Override
    public GoodsVo findGoodsVoById(Long goodsId) {
        return goodsMapper.findGoodsVoById(goodsId);
    }
}
